<include file="Common/header" />

<div class="topbar">
	<nav class="navbar navbar-inverse" role="navigation">
	    <div class="container-fluid">
	    <div class="navbar-header">
	        <a class="navbar-brand txt-white" href="{:U('Index/index')}">api文档管理</a>
	    </div>
    	<!-- <ol class="breadcrumb">
		    <li><a href="#">Home</a></li>
		    <li class="active">十一月</li>
		</ol> -->
	    <ul class="nav navbar-nav navbar-right"> 
            <li><a href="{:U('Home/Index/createProject')}" class="btn btn-primary create-project glyphicon glyphicon-plus">创建项目</a></li> 
            <li><a href="#"><span class="glyphicon glyphicon-user"></span> {$login_user.username}</a></li> 
            <li><a href="{:U('Passport/exist')}"><span class="glyphicon glyphicon-log-in"></span> 注销</a></li> 
        </ul> 
	    </div>
	</nav>
</div>
<div class="body">
	<div class="col-md-2 sidebar">
	    <ul id="main-nav" class="nav nav-tabs nav-stacked" style="">

	    	<if condition="$active_menu eq index">
		        <li class="active">
		    <else />
		    	<li>
	        </if>
	            <a href="{:U('Home/Index/index')}">
	                <i class="glyphicon glyphicon-th-large"></i>
	                首页         
	            </a>
	        </li>

	    	<if condition = "$active_menu['one'] eq project">
	    	<li class="active">
	            <a href="#projectSetting" class="nav-header" data-toggle="collapse">
		            <i class="glyphicon glyphicon-cog"></i>
		            项目管理
		               <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
		        </a>
		        <ul id="projectSetting" class="nav nav-list collapse secondmenu in active" aria-expanded="true">
	    			<if condition = "$active_menu['two'] eq create">
		            <li class="active"><a href="{:U('Home/Index/createProject')}"><i class="glyphicon glyphicon-plus"></i>&nbsp;新建项目</a></li>
		            <else />
		            <li><a href="{:U('Home/Index/createProject')}"><i class="glyphicon glyphicon-plus"></i>&nbsp;新建项目</a></li>
		            </if>
	    			<if condition = "$active_menu['two'] eq my">
		            <li class="active"><a href="{:U('Home/Index/myProject')}"><i class="glyphicon glyphicon-th-list"></i>&nbsp;我的项目</a></li>
		            <else />
		            <li><a href="{:U('Home/Index/myProject')}"><i class="glyphicon glyphicon-th-list"></i>&nbsp;我的项目</a></li>
		            </if>
		        </ul>
	        </li>
	        <else />
	        <li>
	            <a href="#systemSetting" class="nav-header collapsed" data-toggle="collapse">
		            <i class="glyphicon glyphicon-cog"></i>
		            项目管理
		               <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
		        </a>
		        <ul id="systemSetting" class="nav nav-list collapse secondmenu" style="height: 0px;">
		            <li><a href="{:U('Home/Index/createProject')}"><i class="glyphicon glyphicon-plus"></i>&nbsp;新建项目</a></li>
		            <li><a href="{:U('Home/Index/myProject')}"><i class="glyphicon glyphicon-th-list"></i>&nbsp;我的项目</a></li>
		        </ul>
	        </li>
	        </if>

	        <if condition = "$active_menu['one'] eq account">
	    	<li class="active">
	            <a href="#accountSetting" class="nav-header" data-toggle="collapse">
		            <i class="glyphicon glyphicon-cog"></i>
		            帐号管理
		               <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
		        </a>
		        <ul id="accountSetting" class="nav nav-list collapse secondmenu in active" aria-expanded="true">
	    			<if condition = "$active_menu['two'] eq info">
		            <li class="active"><a href="{:U('Home/Index/editUserinfo')}"><i class="glyphicon glyphicon-plus"></i>&nbsp;我的资料</a></li>
		            <else />
		            <li><a href="{:U('Home/Index/editUserinfo')}"><i class="glyphicon glyphicon-plus"></i>&nbsp;我的资料</a></li>
		            </if>
	    			<if condition = "$active_menu['two'] eq modifypwd">
		            <li class="active"><a href="{:U('Home/Index/modifyPwd')}"><i class="glyphicon glyphicon-th-list"></i>&nbsp;修改密码</a></li>
		            <else />
		            <li><a href="{:U('Home/Index/modifyPwd')}"><i class="glyphicon glyphicon-th-list"></i>&nbsp;修改密码</a></li>
		            </if>
		        </ul>
	        </li>
	        <else />
	        <li>
	            <a href="#accountSetting" class="nav-header collapsed" data-toggle="collapse">
		            <i class="glyphicon glyphicon-cog"></i>
		            帐号管理
		               <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
		        </a>
		        <ul id="accountSetting" class="nav nav-list collapse secondmenu" style="height: 0px;">
		            <li><a href="{:U('Home/Index/editUserinfo')}"><i class="glyphicon glyphicon-plus"></i>&nbsp;我的资料</a></li>
		            <li><a href="{:U('Home/Index/modifyPwd')}"><i class="glyphicon glyphicon-th-list"></i>&nbsp;修改密码</a></li>
		        </ul>
	        </li>
	        </if>

	        	<if condition = "($active_menu['one'] eq admin) AND ($login_user.username eq admin)">
	        	<li class="active">
		            <a href="#adminManage" class="nav-header" data-toggle="collapse">
			            <i class="glyphicon glyphicon-cog"></i>
			            项目审核
			               <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
			        </a>
			        <ul id="adminManage" class="nav nav-list collapse secondmenu  in active">
			        	<if condition="$active_menu['two'] eq 'sign_apply'">
			            <li class="active"><a href="{:U('Home/Index/signManage')}"><i class="glyphicon glyphicon-exclamation-sign"></i>&nbsp;签名算法审核</a></li>
			            <else />
			            <li><a href="{:U('Home/Index/signManage')}"><i class="glyphicon glyphicon-exclamation-sign"></i>&nbsp;签名算法审核</a></li>
			            </if>
			        	<if condition="$active_menu['two'] eq 'signlist'">
			            <li class="active"><a href="{:U('Home/Index/signList')}"><i class="glyphicon glyphicon-th-list"></i>&nbsp;签名算法列表</a></li>
			        	<else />
			            <li><a href="{:U('Home/Index/signList')}"><i class="glyphicon glyphicon-th-list"></i>&nbsp;签名算法列表</a></li>
			            </if>
			        </ul>
		        </li>
		        <elseif condition="$login_user.username eq admin" />
		        <li>
		            <a href="#adminManage" class="nav-header collapsed" data-toggle="collapse">
			            <i class="glyphicon glyphicon-cog"></i>
			            项目审核
			               <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
			        </a>
			        <ul id="adminManage" class="nav nav-list collapse secondmenu" style="height: 0px;">
			            <li><a href="{:U('Home/Index/signManage')}"><i class="glyphicon glyphicon-exclamation-sign"></i>&nbsp;签名算法审核</a></li>
			            <li><a href="{:U('Home/Index/signList')}"><i class="glyphicon glyphicon-th-list"></i>&nbsp;签名算法列表</a></li>
			        </ul>
		        </li>
		        </if>
	    </ul>
	</div>
	<div class="col-md-offset-2 col-md-10">
		<div class="hd"><b>{$bread}</b></div>
		<block name="main">
		</block>
	</div>
</li>
<include file="Common/footer" />